﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ScriptEditor.Commands
{
    class Command_Jump : Command
    {
        public string jumpId
        {
            get
            {
                return Value1;
            }
            set
            {
                Value1 = value;
            }
        }
        public string scenarioName
        {
            get
            {
                return Value2;
            }
            set
            {
                Value2 = value;
            }
        }
        public Command_Jump()
        {
            CommandType = COMMANDTYPE.Jump;
            jumpId = "请输入跳转ID";
            scenarioName = "";
            Wait = true;
        }
        public Command_Jump(string JumpId, string ScenarioName = "")
        {
            CommandType = COMMANDTYPE.Jump;
            jumpId = JumpId;
            scenarioName = ScenarioName;
            Wait = true;
        }
        public override string ToString()
        {
            return CommandType.ToString() + ":\n" + "跳转到ID:" + jumpId + "到剧本" + scenarioName;
        }
    }
}
